package com.cy.store.service;

import com.cy.store.entity.User;
import org.springframework.stereotype.Service;

import java.util.Date;

//用户业务模块接口
//命名规则：I+User+Service，I声明这是个接口
public interface IUserService {
    //注册功能
    void reg(User user);

    //登录功能
    User login(String username, String password);

    //密码修改
    void changePassword(Integer uid, String oldPassword, String newPassword);

    //根据id获取对象
    User getById(Integer uid);

    //资料修改
    void changeInfo(Integer uid, User user);

    //头像修改
    void changeAvatar(Integer uid, String avatar);
}
